package Chpter4;
//super调用父类的构造方法
class Animal3{
	public Animal3(String name) {
		System.out.println("I am a "+name);
	}
}
class Dog3 extends Animal3{
	public Dog3() {
		super("dog.");
	}
}
public class Example04 {
	public static void main(String[] args) {
		Dog3 dog=new Dog3();
	}

}
